import Vue from 'vue'
import App from './App.vue'
import router from '@/router/index'
import store from '@/store'
import '@/assets/icon/iconfont.css'

Vue.config.productionTip = false

// 注册全局组件Footer
import Footer from '@/components/Footer/'
Vue.component('Footer',Footer)

// 注册全局组件购物车
import Car from '@/components/Car'
Vue.component('Car',Car)

// 注册全局组件提示框
import Tip from '@/components/Tip'
Vue.component('Tip',Tip)

// 注册全局顶部组件
import Top from '@/components/Top'
Vue.component('Top',Top)

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
